{include file="header.tpl" show_nav_info="no" title="管理作品"}
<div id="container">
{include file="Works-sidebar.tpl}
	<div id="content">
		<div class="page_block">
			<div class="page_block_title">
				<h2>所有作品</h2>
			</div>
			<div class="page_block_body">
				<form action="?Works-setIndex" method="post">
				<input type="hidden" name="works_set_id" value="{$smarty.get.set_id}" />
				<table class="info_tab">
					{section name=item loop=$works}
					<tr><td rowspan="6" width="200"><a href="?Works-showWork&wid={$works[item].work_id}"><img src="{$works[item].work_thumb_url}"/></a></td><td width="200" colspan="2"><strong>{$works[item].work_name}</strong></td></tr>
					<tr><td colspan="2">{$works[item].work_description}</td></tr>
					<tr><td>浏览量</td><td>{$works[item].pageview}</td></tr>
					<tr><td>回复数</td><td>{$works[item].reply_number}</td></tr>
					<tr><td>评分数</td><td>{$works[item].work_score_number}</td></tr>
					<tr><td>平均分</td><td>{$works[item].work_score}</td></tr>
					{if $smarty.get.set_id > 0}
					<tr><td>设为封面</td><td colspan="2"><input type="radio" {if $works[item].work_id == $ws.works_set_index_id} checked="true" {/if} name="works_set_index_id" value="{$works[item].work_id}"/></td></tr>
					{/if}
					{sectionelse}
					<tr><td>您还没有创建任何作品，请<a href="?Works-addWorks">创建一个</a>。</td></tr>
					{/section}
					{if $smarty.get.set_id > 0}
					<tr><td><input type="submit" value="保存" /></td><td colspan="2"><input type="reset" value="重置" /></td></tr>
					{/if}
				</table>
				</form>
			</div>
		</div>
	</div>
</div>
{include file="footer.tpl"}
